<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return['ischecklogin']=$this->model('member')->checklogin();
if($_RQ['op']=='main'){
	$params=array('mid'=>$_SESSION['uid']);
	$return['params']=array();
	if($_RQ['type']){
		$params['type']=$_RQ['type'];
		$return['params']['type']=$_RQ['type'];
		$return['typetitle']=$this->commission_money_types[$_RQ['type']]?:'';
	}
	$return['commission_money']=$this->sum('commission',$params,'money');
	$return['commission_total']=$this->count('commission',$params);
	$return['list']=array();	
	$return['psize']=20;
	exi($return);
}
?>